package tr.edu.yildiz.ce.app_manager.ws.impl;

import javax.jws.WebService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Configurable;

import tr.edu.yildiz.ce.app_manager.model.gen.ApplicationList;
import tr.edu.yildiz.ce.app_manager.service.ApplicationManagerService;
import tr.edu.yildiz.ce.app_manager.ws.AppManagerWs;

@WebService(name="appManager",serviceName="appManager",endpointInterface="tr.edu.yildiz.ce.app_manager.ws.AppManagerWs")
@Configurable
public class AppManagerWsImpl implements AppManagerWs {

	@Autowired
	ApplicationManagerService applicationManagerService;
	
	@Override
	public ApplicationList listAvailableApplications(String username,String password) {
		return applicationManagerService.listAvailableApps(username,password);
	}

}
